
def out(func):
    def inner(*args, **kwargs):
        print("加法开始")
        res = func(*args, **kwargs)
        print("加法结束")
        return res

    return inner

@out
def sum(x):
    print(x + 1)
#sum = out(sum)
sum(10)